/**
 * Report –(B5)
 */
package com.lightsaber.trade.as.web.reporting;

import java.util.List;

import org.apache.struts2.convention.annotation.Namespace;
import org.springframework.beans.factory.annotation.Autowired;

import com.lightsaber.trade.as.entity.category.Category;
import com.lightsaber.trade.as.service.category.CategoryService;
import com.lightsaber.trade.as.service.param.ParamObject;
import com.lightsaber.trade.as.service.param.ParamService;
import com.lightsaber.trade.as.service.reporting.ReportingParamService;

@Namespace("/reporting")
public class B5Action extends ReportingBaseAction {

    @Autowired
    ParamService paramService;

    @Autowired
    CategoryService categoryService;

    @Autowired
    private ReportingParamService reportingParamService;

    private List<Category> planningExerciseList;

    private List<ParamObject> campusList;
    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    @Override
    public String execute() throws Exception {
        planningExerciseList = categoryService.findMasterTreeList();
        campusList = reportingParamService.getCampusList();
        return SUCCESS;
    }

    public ParamService getParamService() {
        return paramService;
    }

    public void setParamService(final ParamService paramService) {
        this.paramService = paramService;
    }

    public List<Category> getPlanningExerciseList() {
        return planningExerciseList;
    }

    public void setPlanningExerciseList(final List<Category> planningExerciseList) {
        this.planningExerciseList = planningExerciseList;
    }

    public ReportingParamService getReportingParamService() {
        return reportingParamService;
    }

    public void setReportingParamService(final ReportingParamService reportingParamService) {
        this.reportingParamService = reportingParamService;
    }

    public List<ParamObject> getCampusList() {
        return campusList;
    }

    public void setCampusList(final List<ParamObject> campusList) {
        this.campusList = campusList;
    }
}
